
package com.fis.hlo.pm.persistence;

import java.math.BigDecimal;
import java.util.Date;

































public class CustomTransaction {

	private long transAccId;
	private AccDetail accDetail;
	private Objects object;
	private Transactions transactions;
	private Accounts account;
	private String currency;
	private String status;
	private Date createdate;
	private String username;
	private String pc;
	private Invoices invoice;
	private Date month;
	private String type;
	private String invoiceNo;
	private String partnerCode;
	private String partnerName;
	private BigDecimal amount;
	private String errorMessage;
	private boolean select;
	
	
	public CustomTransaction(){
		
	}
	
	


	public CustomTransaction(long transAccId, AccDetail accDetail,
			Invoices invoice, Transactions transactions, Accounts account,
			String type, BigDecimal amount, String currency, String status) {
		super();
		this.transAccId = transAccId;
		this.accDetail = accDetail;
		this.invoice = invoice;
		this.transactions = transactions;
		this.account = account;
		this.type = type;
		this.amount = amount;
		this.currency = currency;
		this.status = status;
		
		if (invoice.getObject() !=null) {
//			partnerName = invoice.getObject().getName();
			partnerCode = invoice.getObject().getCode();
		
		}
		
		if (transactions !=null) {
			this.type = transactions.getType();
		}
		
		if (transactions !=null) {
			this.username = transactions.getCreateUser();
		}
		
		if (transactions !=null) {
			this.createdate = transactions.getCreateDate();
		}
		
		if (transactions !=null) {
			month = transactions.getMonth();
		}
		
		if (invoice.getInvoiceNo() != null) {
			invoiceNo = invoice.getInvoiceNo();
		}
		
	}

	public CustomTransaction(long transAccId, AccDetail accDetail,
			Objects object, Transactions transactions, Accounts account,
			String currency, String status, Date createdate, String username,
			String pc, Invoices invoice, Date month, String type,
			String invoiceNo, String partnerCode, String partnerName,
			BigDecimal amount, String errorMessage, boolean select) {
		super();
		this.transAccId = transAccId;
		this.accDetail = accDetail;
		this.object = object;
		this.transactions = transactions;
		this.account = account;
		this.currency = currency;
		this.status = status;
		this.createdate = createdate;
		this.username = username;
		this.pc = pc;
		this.invoice = invoice;
		this.month = month;
		this.type = type;
		this.invoiceNo = invoiceNo;
		this.partnerCode = partnerCode;
		this.partnerName = partnerName;
		this.amount = amount;
		this.errorMessage = errorMessage;
		this.select = select;
		
		if (invoice.getObject() !=null) {
//			partnerName = invoice.getObject().getName();
			partnerCode = invoice.getObject().getCode();
		
		}
		
		if (transactions !=null) {
			this.type = transactions.getType();
		}
		
		if (transactions !=null) {
			this.username = transactions.getCreateUser();
		}
		
		if (transactions !=null) {
			this.createdate = transactions.getCreateDate();
		}
		
		if (invoice.getMonth() != null) {
			month = invoice.getMonth();
		}
		
		if (invoice.getInvoiceNo() != null) {
			invoiceNo = invoice.getInvoiceNo();
		}
		
	}




	public long getTransAccId() {
		return transAccId;
	}




	public void setTransAccId(long transAccId) {
		this.transAccId = transAccId;
	}




	public AccDetail getAccDetail() {
		return accDetail;
	}




	public void setAccDetail(AccDetail accDetail) {
		this.accDetail = accDetail;
	}




	public Objects getObject() {
		return object;
	}




	public void setObject(Objects object) {
		this.object = object;
	}




	public Transactions getTransactions() {
		return transactions;
	}




	public void setTransactions(Transactions transactions) {
		this.transactions = transactions;
	}




	public Accounts getAccount() {
		return account;
	}




	public void setAccount(Accounts account) {
		this.account = account;
	}




	public String getCurrency() {
		return currency;
	}




	public void setCurrency(String currency) {
		this.currency = currency;
	}




	public String getStatus() {
		return status;
	}




	public void setStatus(String status) {
		this.status = status;
	}




	public Date getCreatedate() {
		return createdate;
	}




	public void setCreatedate(Date createdate) {
		this.createdate = createdate;
	}




	public String getUsername() {
		return username;
	}




	public void setUsername(String username) {
		this.username = username;
	}




	public String getPc() {
		return pc;
	}




	public void setPc(String pc) {
		this.pc = pc;
	}




	public Invoices getInvoice() {
		return invoice;
	}




	public void setInvoice(Invoices invoice) {
		this.invoice = invoice;
	}




	public Date getMonth() {
		return month;
	}




	public void setMonth(Date month) {
		this.month = month;
	}




	public String getType() {
		return type;
	}




	public void setType(String type) {
		this.type = type;
	}




	public String getInvoiceNo() {
		return invoiceNo;
	}




	public void setInvoiceNo(String invoiceNo) {
		this.invoiceNo = invoiceNo;
	}




	public String getPartnerCode() {
		return partnerCode;
	}




	public void setPartnerCode(String partnerCode) {
		this.partnerCode = partnerCode;
	}




	public String getPartnerName() {
		return partnerName;
	}




	public void setPartnerName(String partnerName) {
		this.partnerName = partnerName;
	}




	public BigDecimal getAmount() {
		return amount;
	}




	public void setAmount(BigDecimal amount) {
		this.amount = amount;
	}




	public String getErrorMessage() {
		return errorMessage;
	}




	public void setErrorMessage(String errorMessage) {
		this.errorMessage = errorMessage;
	}




	public boolean isSelect() {
		return select;
	}




	public void setSelect(boolean select) {
		this.select = select;
	}


	
	
}
